package com.ayu.shortlink.project.common.constant;

/**
 * 短链接常量类
 */
public class ShortLinkConstant {

    /**
     * 永久短链接默认缓存有效期
     */
    public static final long DEFAULT_CACHE_VALID_TIME = 2626560000L;

    /**
     * 高德的API请求访问地址
     */
    public static final String AMAP_API_URL = "https://restapi.amap.com/v3/ip";

    /**
     * 获取跳转令牌桶的KEY
     */
    public static final String SHORT_LINK_GOTO_TOKEN_KEY = "short-link-goto:token";

    /**
     * HyperLogLog的Key
     */
    public static final String UV_HYPERLOGLOG_KEY = "uv-hyperloglog-key:%s";

    /**
     * 链接访问量的Key
     */
    public static final String PV_UNION_KEY = "pv-union-key_%s_%s";

    /**
     * 链接访问量的Key
     */
    public static final String UNION_SET_KEY = "union-set-key";
}
